package es.index.logs.parse.squid;

import java.util.Date;

import es.index.document.logs.squid.SquidUseragentLog;
import es.index.logs.parse.LogsBaseParse;

public class SquidUseragentLogsParse extends LogsBaseParse {

	public SquidUseragentLogsParse() {
		super();
		String keys = "set_ip,set_date,set_jetLag,set_userAgent";
		_keys = keys.split(",");
	}

	@Override
	protected Object getLogs() {
		SquidUseragentLog log = new SquidUseragentLog();
		log.set_id(ID());
		log.set_fileName(_fileName);
		setClassValue(log, 0, "[\\[|\\]|\"]", "");
		return log;
	}

	@Override
	protected Date getDate() {
		return getDefaultDate();
	}

	@Override
	protected void initParseParamete() {
		initParseParamete(SquidUseragentLog.class);
	}
}
